<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // (function demo() {
        //     console.log('demo')
        // })();

        // var demo1 = function demo2() {
        //     console.log('demo1');
        //     return 100;
        // }();

        // var b = !function demo() {
        //     console.log('demo');
        // }();
        // console.log(b);

        var demo = (function(num) {
            console.log(num);
        })(100);

        var demo = (function() {
            return 100;
        })();

        var demo = (function() {
            return 100;
        })() + 200;
        console.log(demo);
    </script>
</body>
</html>